<div class="primary">
   <div class="sidebar_wrap">
       <? 
         include 'view/common/vic_sidebar.php';
       ?>
   </div>
   <div class="news_line_vertical">&nbsp;</div>
   <div class="content_news">
     <h2><?=$news_cat_id_inf['cat_name']?></h2>
     <div class="content_news_inner">
        <?         
            $templateNews->page_size = 5;
            $templateNews->page = $current_page;
            $news_follow_cat_id = $templateNews->news_follow_cat_id($news_cat_id);
            
            $total = $templateNews->news_follow_cat_id_total($news_cat_id);
            foreach($news_follow_cat_id as $row){
        ?>
              <div class="news_one">
                   <div class="news_item_img">
                       <img alt="<?=$row['new_title']?>" src="<?=($row['new_picture']) ? news_img.$row['new_picture'] : "/pictures/no.jpg"?>" onerror="this.src='/pictures/no.jpg'" />
                   </div>
                   <div class="news_item_main">
                       <h3><a href="<?=generate_news_detail_url($row)?>"><?=cut_string($row['new_title'],70)?></a></h3>
                       <p class="news_date">Đăng lúc: <?=getDateTime(1,1,1,1,'',$row['new_date'])?></p>
                       <p>&nbsp;&nbsp;&nbsp;<?=cut_string($row['new_summary'],222)?></p>
                       <div class="read_more">
                           <a href="<?=generate_news_detail_url($row)?>">Đọc thêm ...</a>
                       </div>
                   </div>
              </div>
        <? } ?>
           <div class="news_pagebreak">
               <input type="hidden" id="news_cat_id" value="<?=$news_cat_id?>" />
               <?=generatePageBar('',$current_page,$templateNews->page_size,$total,'','main_page_btn','page_selected','<','>','Đầu','Cuối',1,1)?>
           </div>
        </div>    
   </div><!-- End content -->
</div><!-- End primary -->